import { Table, TablePaginationConfig } from 'antd';
import React from 'react';

export interface ITabelProps {
	isPagination?: false | TablePaginationConfig | undefined;
	dataSource: any;
	columns: any;
	[key: string]: any;
}

const CommonTable: React.FC<ITabelProps> = ({ dataSource, columns, isPagination = false }) => {
	return (
		<div>
			<Table columns={columns} dataSource={dataSource} pagination={isPagination} />
		</div>
	);
};

export default CommonTable;
